/***************************************************************
 *
 * (c) 2008 Markus Dittrich 
 *
 * This program is free software; you can redistribute it 
 * and/or modify it under the terms of the GNU General Public 
 * License Version 3 as published by the Free Software Foundation. 
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License Version 3 for more details.
 *
 * You should have received a copy of the GNU General Public 
 * License along with this program; if not, write to the Free 
 * Software Foundation, Inc., 59 Temple Place - Suite 330, 
 * Boston, MA 02111-1307, USA.
 *
 ****************************************************************/

#ifndef HISTOGRAMSELECTORWIDGET_H
#define HISTOGRAMSELECTORWIDGET_H

/* boost includes */
#include <boost/utility.hpp>

/* STL includes */

/* Qt includes */
#include <QDialog>

/* forward declarations */
class QCheckBox;
class QSpinBox;


/*****************************************************************
 *
 * class DataSelectorWidget provides the interface for selecting
 * the properties of and creating histograms 
 *
 ****************************************************************/
class HistogramSelectorWidget 
  : 
    public QDialog, 
    public boost::noncopyable
{

  Q_OBJECT


public:

  explicit HistogramSelectorWidget(QWidget* parent);
  bool Init();


signals:

  void create_histogram(int numBins, bool normalize);


private slots:

  void prepare_histogram_();


private:

  /* indicates successful construction */
  int status_;

  /* pointer to parent */
  QWidget* parent_;

  /* widgets */
  QCheckBox* normalizeCheckBox_;
  QSpinBox* numBinsSelector_;
};



#endif
